# -*- coding:utf-8 -*-
class Solution:
    def rectCover(self, number):
        # write code here
        # 斐波那契数列
        if number == 0:
            return 0
        if number == 1:
            return 1
        if number == 2:
            return 2
        rec = [1,2]
        for _ in range(number-2):
           rec.append(sum(rec))
           rec.pop(0)
        return rec[-1]